package com.ktjiaoyu.yuanzihuan.repository;

import com.ktjiaoyu.yuanzihuan.bean.IndexImg;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface IndexImgRepository extends JpaRepository<IndexImg,Long> {


    public List<IndexImg> findAllByOrderByImgOrderDesc();

    public List<IndexImg> findByEnabledAndImgTypeOrderByImgOrderAsc(int enabled,String imgType);
}
